package com.naiterui.ehp.bs.cms.modules.agent.vo;

import com.naiterui.ehp.bs.cms.modules.agent.entity.AgArea;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yiren
 * @since 2022/2/11
 */
@Data
public class IdAndName {
	@ApiModelProperty(value = "ID")
	private Long id;
	@ApiModelProperty(value = "名称")
	private String name;

	public static IdAndName of(Long id, String name){
		IdAndName idAndName = new IdAndName();
		idAndName.setId(id);
		idAndName.setName(name);
		return idAndName;
	}
}
